package com.ruoyi.system.service.impl.smy;

import com.ruoyi.common.core.domain.smy.MallGoodsSku;
import com.ruoyi.system.mapper.smy.MallGoodsSkuMapper;
import com.ruoyi.system.service.smy.IMallGoodsSkuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MallGoodsSkuServiceImpl implements IMallGoodsSkuService {
	@Resource
	private MallGoodsSkuMapper mallGoodsSkuMapper;

	@Override
	public MallGoodsSku selectMallGoodsSkuById(Long id) {
		return mallGoodsSkuMapper.selectMallGoodsSkuById(id);
	}

	@Override
	public List<MallGoodsSku> selectMallGoodsSkuList(MallGoodsSku mallGoodsSku) {
		return mallGoodsSkuMapper.selectMallGoodsSkuList(mallGoodsSku);
	}

	@Override
	public int insertMallGoodsSku(MallGoodsSku mallGoodsSku) {
		return mallGoodsSkuMapper.insertMallGoodsSku(mallGoodsSku);
	}

	@Override
	public int updateMallGoodsSku(MallGoodsSku mallGoodsSku) {
		return mallGoodsSkuMapper.updateMallGoodsSku(mallGoodsSku);
	}

	@Override
	public int deleteMallGoodsSkuByIds(Long[] ids) {
		return mallGoodsSkuMapper.deleteMallGoodsSkuByIds(ids);
	}

	@Override
	public int deleteMallGoodsSkuById(Long id) {
		return mallGoodsSkuMapper.deleteMallGoodsSkuById(id);
	}
}
